import {
  UPDATE_APP_PROPS
} from '../constants/actionType'
import Immutable from 'immutable'

const initialState = Immutable.fromJS({
  props: {}
})

export default (state = initialState, action) => {
  let newState = state
  switch (action.type) {
    case UPDATE_APP_PROPS:
      console.log('==UPDATE_APP_PROPS==', action)
      newState = state.set('props', Immutable.fromJS(action.payload.props))
      return newState
    default :
      return state
  }
}
